<template>
	<view class="bg-title">
		<view class="title-text" :style="titleStyle">
			<slot/>
		</view>
		<view class="title-banner"></view>
	</view>
</template>

<script>
	export default {
		name:"bg-title",
		props:['titleStyle'],
		data() {
			return {
				
			};
		}
	}
</script>

<style>
	.bg-title {
		position: relative;
	}
	.title-text {
		font-size: 32rpx;
		line-height: 40rpx;
		font-family: PingFang SC, PingFang SC-Medium;
		font-weight: 500;
		color: #1d2129;
	}
	
	.title-banner {
		position: absolute;
		bottom: -2rpx;
		width: 60rpx;
		height: 10rpx;
		background: linear-gradient(90deg,#eb393d, rgba(251,34,34,0.00));
		border-radius: 8rpx 2rpx 8rpx 2rpx;
	}
</style>